/**   
* @Title: LocalCacheContainer.java 
* @Package com.farms.cache 
* @Description: TODO(用一句话描述该文件做什么) 
* @author zjhua@hundsun.com   
* @date 2016年4月25日 下午9:53:03 
* @version V1.0   
*/ 
package com.medsoft.dlcache;

import java.util.concurrent.ConcurrentHashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zjhua
 *
 */
@Component
public class LocalCacheUpdateListener {
	@Autowired
	private LocalCacheContainer localCacheContainer;
	
	public boolean saveCacheEntry(String cacheName,CacheEntry cacheEntry) {
		return localCacheContainer.saveCacheEntry(cacheName, cacheEntry);
	}
	
	public boolean removeCacheEntry(String cacheName,String key) {
		return localCacheContainer.removeCacheEntry(cacheName, key);
	}
	
	public boolean replaceCache(String cacheName,ConcurrentHashMap<String,CacheEntry> cache) {
		return localCacheContainer.replaceCache(cacheName, cache);
	}
}
